package se.plingapp.entitybeans;

import javax.persistence.*;

/**
 *
 * @author erikbrannstrom
 */
@Entity
public class Message extends Content {
    
    @Column(nullable = false, length = 1000)
    private String text;

    public Message() {
        super();
    }

    public Message(User user, String text) {
        super(user);
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

}
